const User = require('../../db/userSchame');
module.exports = async(req, res) => {
    console.log(req.query.id);
    // null {}
    var relData = await User.findOne({ "_id": req.query.id });
    if (relData) {
        res.render('./admin/edituser.ejs', { userData: relData })
    } else {
        res.status(500).send('服务器错误');
    }
};